<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>欢迎注册</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">


		<link rel="stylesheet" href="forum/css/style.css" type="text/css" />
		<script type="text/javascript" language="javascript"
			src="forum/js/login.js">
	
</script>

	</head>
	<body>

		<jsp:include page="../include/header.jsp"></jsp:include>

		<table class="loginTable" border="0" align="center">
			<!--主题内容区-->
			<jsp:include page="../include/welcomeBanner.jsp"></jsp:include>

			<tr>
				<td class="currentPos" colspan="3">
					<div style="float: left; width: 400px">
						<img src="forum/img/current.png" />
						当前位置：
						<span class="pos"> <s:a action="init" namespace="/">首页</s:a>->
							<s:a>注册页面</s:a> </span>
					</div>
				</td>
			</tr>


			<!--  放注册的主体部分-->
			<tr>
				<td>
					<s:form action="loginregister!register" name="register"
						id="register" namespace="/" method="post">
						<table width="800px" border="0" align="center">
							<tr>
								<td>
									<table border="0" align="right">

										<tr>
											<td>
												用&nbsp;&nbsp;户&nbsp;&nbsp;名:
											</td>
											<td colspan="2">
												<table border="0">
													<s:textfield name="name" id="name" maxlength="20"
														style="width: 150px" onblur="checkName()">
													</s:textfield>
												</table>
											</td>
											<td width="100px">
												<span id="name_i"></span>
											</td>
										</tr>
										<tr>
											<td align="left" height="35px">
												<span id="name_t"><font size="-3">2-20位字符，可以由中文、英文、数字及下划线组成</font>
												</span>
											</td>
										</tr>

										<tr>
											<td>
												密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:
											</td>
											<td colspan="2">
												<table>
													<s:password name="pwd" id="pwd" maxlength="16"
														style="width: 150px" onblur="checkPassword()">
													</s:password>
												</table>
											</td>
											<td>
												<span id="pwd_i"></span>
											</td>
										</tr>
										<tr>
											<td align="left" height="30px">
												<span><font size="-3">6-16位字符，可以由英文、数字及下划线组成</font> </span>
											</td>
										</tr>
										<tr>
											<td>
												确认密码:
											</td>
											<td colspan="2">
												<table>
													<s:password name="pwd_" id="pwd_" maxlength="16"
														style="width: 150px" onblur="checkPassword_()">
													</s:password>
												</table>
											</td>
											<td>
												<span id="rpwd_i"></span>
											</td>
										</tr>
										<tr>
											<td align="left" height="33px">
												<span id="rpwd_t"><font size="-3">请再次输入你的密码</font> </span>
											</td>
										</tr>
										<tr>
											<td>
												邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱:
											</td>
											<td colspan="2">
												<table>
													<s:textfield name="email" id="email" style="width: 150px"
														onblur="checkEmail()">
													</s:textfield>
												</table>
											</td>
											<td>
												<span id="email_i"></span>
											</td>
										</tr>

										<tr>
											<td align="left" height="33px">
												<span id="email_t"><font size="-3">请输入常用的邮箱，用于接收通知、找回密码等</font>
												</span>
											</td>
										</tr>
										<tr>
											<td>

											</td>
										</tr>
										<tr>
											<td>
												验&nbsp;&nbsp;证&nbsp;&nbsp;码:
											</td>
											<td>
												<table>
													<s:textfield name="checkcode" id="checkcode" maxlength="4"
														style="width: 50px;">
													</s:textfield>
												</table>
											</td>
											<td>
												<img alt="验证码" name="code" id="code"
													src="loginregister!checkCode.action" width="70px"
													height="30px" onclick="changeCode_()" />
											</td>
											<td>
												<span id="checkcode_e"><s:property
														value="checkcode_e" /> </span>
											</td>
										</tr>
										<tr>
											<td colspan="3" align="right">
												<input type="image" src="forum/img/reg_btn.png"
													onclick="register()" />
												<input type="image" src="forum/img/reset_btn.png"
													onclick="javascript:freset(document.register);return false" />
											</td>
										</tr>
									</table>
								</td>
							</tr>

						</table>
					</s:form>
				</td>
			</tr>
		</table>

		<jsp:include page="../include/footer.jsp"></jsp:include>
	</body>
</html>
